<?
require('includes/dvt_config.php');
$IdLoaiSP = 0; $ListMn="";
//echo "hien thi";
if(isset($_GET["IdLoaiSP"])) {
$IdLoaiSP=$_GET["IdLoaiSP"];
$sql = "select * from ".$prefix."loaisanpham where c_id_cha = '".$IdLoaiSP."' order by c_id ASC";
$result = $db->query($sql);
$ListMn = ",-1,--- Chọn Loại Sản Phẩm ---";
while($rowt = $db->fetch_array($result))
{
	$ListMn .= ",".$rowt["c_id"].",".$rowt["c_ten"];
}

$ListMn=substr($ListMn,1);
echo $ListMn;
}
?>